package com.baidu.constant;

public class ConstDemo3 {
    public static void main(String[] args) {
        System.out.println("The harder you try, the luckier you get");

        System.out.println("----------------------------");
        System.out.println("动手敲\n治百病");
        System.out.println("----------------------------");
//        打印一个整数
        int a = 10;
//        打印一个小数
        double b = 1.3;
//        int d = '10';  错误字误，只限一个字符。
//        打印一个字符串
        String c = "小明";
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println("----------------------------");
        System.out.println(true);
        System.out.println("----------------------------");

//      System.out.println(null); 空常量不允许直接输出。
        System.out.println("----------------------------");
        int g = 10;
        g = 30;
        System.out.println(g);
        System.out.println("----------------------------");
        int age = 18;
//        int t = 1;
        System.out.println(age);
//        age = age + 1;
        age++;
//        System.out.println(t + age);
        System.out.println(age);
        System.out.println("----------------------------");
        double price = 300;
        System.out.println(price);
        price = price + 233.5;
        System.out.println(price);
        price = price - 200;
        System.out.println(price);

        System.out.println("----------------------------");
        String id = "A20330303";
        String name = "易秀";
        int age1 = 23;
        double height = 173.5;
        String address = "广州市天河区珠吉公路上街4号";
        System.out.println("学号：" + id);
        System.out.println("姓名：" + name);
        System.out.println("年龄：" + age1);
        System.out.println("身高：" + height);
        System.out.println("地址：" + address);

        System.out.println("-------------手机信息---------------");
        String tips = "小米";
        String brand = "小米13";
        String desc = "小米13\t徕卡光学镜头\t第二代骁龙8处理器";
        int count = 10000;
        String store = "小米京东自营旗舰店";

        System.out.println("手机的品牌：" + tips);
        System.out.println("品牌：" + brand);
        System.out.println("商品介绍：" + desc);
        System.out.println("评论数：" + count);
        System.out.println("商家信息：" + store);


    }
}
